package com.aerozhonghuan.logisticsmall.utils;

import android.content.Context;
import android.telephony.TelephonyManager;

/**
 * 描述
 *
 * @author zhangyonghui
 * 创建日期 2019-05-17
 */
public class PhoneUtils {
    private PhoneUtils(){}

    public static String getImei(Context context){
        TelephonyManager telephonyManager = (TelephonyManager) context.getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
        String imei = telephonyManager.getDeviceId();
        return imei;
    }

    public static String getPhoneName(){
        return android.os.Build.MODEL.replaceAll(" ", "_").replaceAll("-", "").trim();
    }
}
